package com.example.tb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* @Description:  角色表
* @Author: yaodada
* @Date: 2023/12/25
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("role")
public class Role {
    // 注意属性名要与数据表中的字段名一致
    // 主键自增int(10)对应long
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String description;
}